package com.ushine.web.component.design.chain.salary.handler;

import com.ushine.web.component.design.chain.salary.config.AbstractSalaryCalculateHandler;
import com.ushine.web.component.design.chain.salary.model.SalaryCalculateBO;
import com.ushine.web.component.http.HttpResponseVO;
import org.springframework.stereotype.Service;

/**
 * @Author: yls
 * @Date: 2022/03/04 11:28
 * @Description: 薪资计算异常，如果需要做对应的处理操作
 * @Version 1.0
 */
@Service
public class SalaryExceptionHandler extends AbstractSalaryCalculateHandler {
    @Override
    public HttpResponseVO<?> process(SalaryCalculateBO salaryCalculate) {
        return new HttpResponseVO<>().ok("异常处理完成！",salaryCalculate);
    }
}
